<template>
    <el-dialog
    title="修改幅度"
    :visible="isShowChangeDialog"
    @close="dialogClose"
      >
    <el-form :model="ruleForm" :rules="rules" ref="" label-width="100px">
        <el-form-item label="加价幅度" prop="range">
            <el-input v-model="ruleForm.range"></el-input>
        </el-form-item>

    </el-form>
  
    <span style="display: flex;">
          <div style="flex: 1"></div>
        <el-button @click="dialogClose()">取 消</el-button>
        <el-button type="primary" @click="dialogClose()">确 定</el-button>
    </span>
  
  </el-dialog>
  
</template>
  
  <script>
  export default {
      data(){
          return{
              ruleForm: {
                  range: '',
              },
              rules:{
                  range:[
                      {required: true, message: '请输入'}
                  ],
              }
          }
      },

      props:{
          isShowChangeDialog:{
              type:Boolean
          },
      },
      methods: {
          dialogClose(){ 
              this.$emit('dialogClose');
          },
      }
  }
  </script>
  
  <style>
      
  </style>
  
  